<template>
  <div class="list">
    <router-link :to="href">
      <img-box
          :width="450"
          :height="262"
          :imgSrc="item.coverUrl"
        >
        </img-box>
        <div class="list__title">
          <h4>【<span class="xui-text-truncate">山水画中的自然与人文</span>】</h4>
        </div>
        <div class="list__info xui-margin-left-md">
            <p class="xui-margin-bottom-xs">活动时间：2017-03-08 14:30-16:30</p>
            <p>博物馆一楼多功能厅</p>
          </div>
    </router-link>
  </div>
</template>
<script>
import ImgBox from "@/components/widge/img-box";

export default {
  components: {
    "img-box": ImgBox
  },
  props: {
    href: String,
    item: Object
  }
};
</script>
<style lang="less" scoped>
.list {
  width: 450px;
  height: 262px;
}
.list a {
  cursor: pointer;
  display: block;
  position: relative;
  color: #fff;
}
.list .list__title {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}
.list .list__title h4 {
  text-align: center;
  font-size: 24px;
  font-weight: normal;
}
.list .list__title span {
  width: 58%;
  display: inline-block;
  vertical-align: middle;
  margin-top: -7px;
}
.list .list__info {
  position: absolute;
  bottom: 30px;
  font-size: 14px;
}
</style>


